

<!DOCTYPE html>

<html>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>llvm-readobj - LLVM Object Reader &#8212; LLVM 9 documentation</title>
    <link rel="stylesheet" href="../_static/llvm-theme.css" type="text/css" />
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
    <script id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
    <script src="../_static/jquery.js"></script>
    <script src="../_static/underscore.js"></script>
    <script src="../_static/doctools.js"></script>
    <script src="../_static/language_data.js"></script>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="&lt;no title&gt;" href="llvm-addr2line.html" />
    <link rel="prev" title="llvm-mca - LLVM Machine Code Analyzer" href="llvm-mca.html" />
<style type="text/css">
  table.right { float: right; margin-left: 20px; }
  table.right td { border: 1px solid #ccc; }
</style>

  </head><body>
<div class="logo">
  <a href="../index.html">
    <img src="../_static/logo.png"
         alt="LLVM Logo" width="250" height="88"/></a>
</div>

    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="llvm-addr2line.html" title="&lt;no title&gt;"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="llvm-mca.html" title="llvm-mca - LLVM Machine Code Analyzer"
             accesskey="P">previous</a> |</li>
  <li><a href="http://llvm.org/">LLVM Home</a>&nbsp;|&nbsp;</li>
  <li><a href="../index.html">Documentation</a>&raquo;</li>

          <li class="nav-item nav-item-1"><a href="index.html" accesskey="U">LLVM Command Guide</a> &#187;</li>
        <li class="nav-item nav-item-this"><a href="">llvm-readobj - LLVM Object Reader</a></li> 
      </ul>
    </div>


    <div class="document">
      <div class="documentwrapper">
          <div class="body" role="main">
            
  <div class="section" id="llvm-readobj-llvm-object-reader">
<h1>llvm-readobj - LLVM Object Reader<a class="headerlink" href="#llvm-readobj-llvm-object-reader" title="Permalink to this headline">¶</a></h1>
<div class="section" id="synopsis">
<h2>SYNOPSIS<a class="headerlink" href="#synopsis" title="Permalink to this headline">¶</a></h2>
<p><strong class="program">llvm-readobj</strong> [<em>options</em>] [<em>input…</em>]</p>
</div>
<div class="section" id="description">
<h2>DESCRIPTION<a class="headerlink" href="#description" title="Permalink to this headline">¶</a></h2>
<p>The <strong class="program">llvm-readobj</strong> tool displays low-level format-specific information
about one or more object files.</p>
<p>If <code class="docutils literal notranslate"><span class="pre">input</span></code> is “<code class="docutils literal notranslate"><span class="pre">-</span></code>” or omitted, <strong class="program">llvm-readobj</strong> reads from standard
input. Otherwise, it will read from the specified <code class="docutils literal notranslate"><span class="pre">filenames</span></code>.</p>
</div>
<div class="section" id="differences-to-llvm-readelf">
<h2>DIFFERENCES TO LLVM-READELF<a class="headerlink" href="#differences-to-llvm-readelf" title="Permalink to this headline">¶</a></h2>
<p><strong class="program">llvm-readelf</strong> is an alias for the <em class="manpage"><a class="manpage reference external" href="https://llvm.org/docs/CommandGuide/llvm-readobj.html">llvm-readobj</a></em> tool with a
slightly different command-line interface and output that is GNU compatible.
Following is a list of differences between <strong class="program">llvm-readelf</strong> and
<strong class="program">llvm-readobj</strong>:</p>
<ul class="simple">
<li><p><strong class="program">llvm-readelf</strong> uses <cite>GNU</cite> for the <a class="reference internal" href="#cmdoption-llvm-readobj-elf-output-style"><code class="xref std std-option docutils literal notranslate"><span class="pre">--elf-output-style</span></code></a> option
by default. <strong class="program">llvm-readobj</strong> uses <cite>LLVM</cite>.</p></li>
<li><p><strong class="program">llvm-readelf</strong> allows single-letter grouped flags (e.g.
<code class="docutils literal notranslate"><span class="pre">llvm-readelf</span> <span class="pre">-SW</span></code> is the same as  <code class="docutils literal notranslate"><span class="pre">llvm-readelf</span> <span class="pre">-S</span> <span class="pre">-W</span></code>).
<strong class="program">llvm-readobj</strong> does not allow grouping.</p></li>
<li><p><strong class="program">llvm-readelf</strong> provides <a class="reference internal" href="#cmdoption-llvm-readobj-sections"><code class="xref std std-option docutils literal notranslate"><span class="pre">-s</span></code></a> as an alias for
<a class="reference internal" href="#cmdoption-llvm-readobj-symbols"><code class="xref std std-option docutils literal notranslate"><span class="pre">--symbols</span></code></a>, for GNU <strong class="program">readelf</strong> compatibility, whereas it is
an alias for <a class="reference internal" href="#cmdoption-llvm-readobj-sections"><code class="xref std std-option docutils literal notranslate"><span class="pre">--section-headers</span></code></a> in <strong class="program">llvm-readobj</strong>.</p></li>
<li><p><strong class="program">llvm-readobj</strong> provides <code class="docutils literal notranslate"><span class="pre">-t</span></code> as an alias for <a class="reference internal" href="#cmdoption-llvm-readobj-symbols"><code class="xref std std-option docutils literal notranslate"><span class="pre">--symbols</span></code></a>.
<strong class="program">llvm-readelf</strong> does not.</p></li>
<li><p><strong class="program">llvm-readobj</strong> provides <code class="docutils literal notranslate"><span class="pre">--sr</span></code>, <code class="docutils literal notranslate"><span class="pre">--sd</span></code>, <code class="docutils literal notranslate"><span class="pre">--st</span></code> and <code class="docutils literal notranslate"><span class="pre">--dt</span></code> as
aliases for <a class="reference internal" href="#cmdoption-llvm-readobj-section-relocations"><code class="xref std std-option docutils literal notranslate"><span class="pre">--section-relocations</span></code></a>, <a class="reference internal" href="#cmdoption-llvm-readobj-section-data"><code class="xref std std-option docutils literal notranslate"><span class="pre">--section-data</span></code></a>,
<a class="reference internal" href="#cmdoption-llvm-readobj-section-symbols"><code class="xref std std-option docutils literal notranslate"><span class="pre">--section-symbols</span></code></a> and <a class="reference internal" href="#cmdoption-llvm-readobj-dyn-symbols"><code class="xref std std-option docutils literal notranslate"><span class="pre">--dyn-symbols</span></code></a> respectively.
<strong class="program">llvm-readelf</strong> does not provide these aliases, to avoid conflicting
with grouped flags.</p></li>
</ul>
</div>
<div class="section" id="general-and-multi-format-options">
<h2>GENERAL AND MULTI-FORMAT OPTIONS<a class="headerlink" href="#general-and-multi-format-options" title="Permalink to this headline">¶</a></h2>
<p>These options are applicable to more than one file format, or are unrelated to
file formats.</p>
<dl class="std option">
<dt id="cmdoption-llvm-readobj-all">
<code class="sig-name descname">--all</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-all" title="Permalink to this definition">¶</a></dt>
<dd><p>Equivalent to specifying all the main display options relevant to the file
format.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-addrsig">
<code class="sig-name descname">--addrsig</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-addrsig" title="Permalink to this definition">¶</a></dt>
<dd><p>Display the address-significance table.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-color">
<code class="sig-name descname">--color</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-color" title="Permalink to this definition">¶</a></dt>
<dd><p>Use colors in the output for warnings and errors.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-expand-relocs">
<code class="sig-name descname">--expand-relocs</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-expand-relocs" title="Permalink to this definition">¶</a></dt>
<dd><p>When used with <a class="reference internal" href="#cmdoption-llvm-readobj-relocations"><code class="xref std std-option docutils literal notranslate"><span class="pre">--relocations</span></code></a>, display each relocation in an expanded
multi-line format.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-file-headers">
<span id="cmdoption-llvm-readobj-h"></span><code class="sig-name descname">--file-headers</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">-h</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-file-headers" title="Permalink to this definition">¶</a></dt>
<dd><p>Display file headers.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-headers">
<span id="cmdoption-llvm-readobj-e"></span><code class="sig-name descname">--headers</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">-e</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-headers" title="Permalink to this definition">¶</a></dt>
<dd><p>Equivalent to setting: <a class="reference internal" href="#cmdoption-llvm-readobj-file-headers"><code class="xref std std-option docutils literal notranslate"><span class="pre">--file-headers</span></code></a>, <a class="reference internal" href="#cmdoption-llvm-readobj-program-headers"><code class="xref std std-option docutils literal notranslate"><span class="pre">--program-headers</span></code></a>,
and <a class="reference internal" href="#cmdoption-llvm-readobj-sections"><code class="xref std std-option docutils literal notranslate"><span class="pre">--sections</span></code></a>.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-help">
<code class="sig-name descname">--help</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-help" title="Permalink to this definition">¶</a></dt>
<dd><p>Display a summary of command line options.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-help-list">
<code class="sig-name descname">--help-list</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-help-list" title="Permalink to this definition">¶</a></dt>
<dd><p>Display an uncategorized summary of command line options.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-hex-dump">
<span id="cmdoption-llvm-readobj-x"></span><code class="sig-name descname">--hex-dump</code><code class="sig-prename descclassname">=&lt;section[,section,...]&gt;</code><code class="sig-prename descclassname">, </code><code class="sig-name descname">-x</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-hex-dump" title="Permalink to this definition">¶</a></dt>
<dd><p>Display the specified section(s) as hexadecimal bytes. <code class="docutils literal notranslate"><span class="pre">section</span></code> may be a
section index or section name.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-needed-libs">
<code class="sig-name descname">--needed-libs</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-needed-libs" title="Permalink to this definition">¶</a></dt>
<dd><p>Display the needed libraries.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-relocations">
<span id="cmdoption-llvm-readobj-relocs"></span><span id="cmdoption-llvm-readobj-r"></span><code class="sig-name descname">--relocations</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--relocs</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">-r</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-relocations" title="Permalink to this definition">¶</a></dt>
<dd><p>Display the relocation entries in the file.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-sections">
<span id="cmdoption-llvm-readobj-section-headers"></span><span id="cmdoption-llvm-readobj-s"></span><span id="cmdoption-llvm-readobj-S"></span><code class="sig-name descname">--sections</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--section-headers</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">-s</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">-S</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-sections" title="Permalink to this definition">¶</a></dt>
<dd><p>Display all sections.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-section-data">
<span id="cmdoption-llvm-readobj-sd"></span><code class="sig-name descname">--section-data</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--sd</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-section-data" title="Permalink to this definition">¶</a></dt>
<dd><p>When used with <a class="reference internal" href="#cmdoption-llvm-readobj-sections"><code class="xref std std-option docutils literal notranslate"><span class="pre">--sections</span></code></a>, display section data for each section
shown. This option has no effect for GNU style output.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-section-relocations">
<span id="cmdoption-llvm-readobj-sr"></span><code class="sig-name descname">--section-relocations</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--sr</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-section-relocations" title="Permalink to this definition">¶</a></dt>
<dd><p>When used with <a class="reference internal" href="#cmdoption-llvm-readobj-sections"><code class="xref std std-option docutils literal notranslate"><span class="pre">--sections</span></code></a>, display relocations for each section
shown. This option has no effect for GNU style output.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-section-symbols">
<span id="cmdoption-llvm-readobj-st"></span><code class="sig-name descname">--section-symbols</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--st</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-section-symbols" title="Permalink to this definition">¶</a></dt>
<dd><p>When used with <a class="reference internal" href="#cmdoption-llvm-readobj-sections"><code class="xref std std-option docutils literal notranslate"><span class="pre">--sections</span></code></a>, display symbols for each section shown.
This option has no effect for GNU style output.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-stackmap">
<code class="sig-name descname">--stackmap</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-stackmap" title="Permalink to this definition">¶</a></dt>
<dd><p>Display contents of the stackmap section.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-string-dump">
<span id="cmdoption-llvm-readobj-p"></span><code class="sig-name descname">--string-dump</code><code class="sig-prename descclassname">=&lt;section[,section,...]&gt;</code><code class="sig-prename descclassname">, </code><code class="sig-name descname">-p</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-string-dump" title="Permalink to this definition">¶</a></dt>
<dd><p>Display the specified section(s) as a list of strings. <code class="docutils literal notranslate"><span class="pre">section</span></code> may be a
section index or section name.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-symbols">
<span id="cmdoption-llvm-readobj-syms"></span><span id="cmdoption-llvm-readobj-t"></span><code class="sig-name descname">--symbols</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--syms</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">-t</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-symbols" title="Permalink to this definition">¶</a></dt>
<dd><p>Display the symbol table.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-unwind">
<span id="cmdoption-llvm-readobj-u"></span><code class="sig-name descname">--unwind</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">-u</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-unwind" title="Permalink to this definition">¶</a></dt>
<dd><p>Display unwind information.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-version">
<code class="sig-name descname">--version</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-version" title="Permalink to this definition">¶</a></dt>
<dd><p>Display the version of this program.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-arg-FILE">
<span id="cmdoption-llvm-readobj-arg-file"></span><code class="sig-name descname">&#64;&lt;FILE&gt;</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-arg-FILE" title="Permalink to this definition">¶</a></dt>
<dd><p>Read command-line options from response file <cite>&lt;FILE&gt;</cite>.</p>
</dd></dl>

</div>
<div class="section" id="elf-specific-options">
<h2>ELF SPECIFIC OPTIONS<a class="headerlink" href="#elf-specific-options" title="Permalink to this headline">¶</a></h2>
<p>The following options are implemented only for the ELF file format.</p>
<dl class="std option">
<dt id="cmdoption-llvm-readobj-arm-attributes">
<code class="sig-name descname">--arm-attributes</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-arm-attributes" title="Permalink to this definition">¶</a></dt>
<dd><p>Display the ARM attributes section. Only applicable for ARM architectures.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-demangle">
<span id="cmdoption-llvm-readobj-C"></span><span id="cmdoption-llvm-readobj-c"></span><code class="sig-name descname">--demangle</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">-C</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-demangle" title="Permalink to this definition">¶</a></dt>
<dd><p>Display demangled symbol names in the output.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-dyn-relocations">
<code class="sig-name descname">--dyn-relocations</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-dyn-relocations" title="Permalink to this definition">¶</a></dt>
<dd><p>Display the dynamic relocation entries.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-dyn-symbols">
<span id="cmdoption-llvm-readobj-dyn-syms"></span><span id="cmdoption-llvm-readobj-dt"></span><code class="sig-name descname">--dyn-symbols</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--dyn-syms</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--dt</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-dyn-symbols" title="Permalink to this definition">¶</a></dt>
<dd><p>Display the dynamic symbol table.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-dynamic-table">
<span id="cmdoption-llvm-readobj-dynamic"></span><span id="cmdoption-llvm-readobj-d"></span><code class="sig-name descname">--dynamic-table</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--dynamic</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">-d</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-dynamic-table" title="Permalink to this definition">¶</a></dt>
<dd><p>Display the dynamic table.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-elf-cg-profile">
<code class="sig-name descname">--elf-cg-profile</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-elf-cg-profile" title="Permalink to this definition">¶</a></dt>
<dd><p>Display the callgraph profile section.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-elf-hash-histogram">
<span id="cmdoption-llvm-readobj-histogram"></span><span id="cmdoption-llvm-readobj-I"></span><span id="cmdoption-llvm-readobj-i"></span><code class="sig-name descname">--elf-hash-histogram</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--histogram</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">-I</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-elf-hash-histogram" title="Permalink to this definition">¶</a></dt>
<dd><p>Display a bucket list histogram for dynamic symbol hash tables.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-elf-linker-options">
<code class="sig-name descname">--elf-linker-options</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-elf-linker-options" title="Permalink to this definition">¶</a></dt>
<dd><p>Display the linker options section.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-elf-output-style">
<code class="sig-name descname">--elf-output-style</code><code class="sig-prename descclassname">=&lt;value&gt;</code><a class="headerlink" href="#cmdoption-llvm-readobj-elf-output-style" title="Permalink to this definition">¶</a></dt>
<dd><p>Format ELF information in the specified style. Valid options are <code class="docutils literal notranslate"><span class="pre">LLVM</span></code> and
<code class="docutils literal notranslate"><span class="pre">GNU</span></code>. <code class="docutils literal notranslate"><span class="pre">LLVM</span></code> output (the default) is an expanded and structured format,
whilst <code class="docutils literal notranslate"><span class="pre">GNU</span></code> output mimics the equivalent GNU <strong class="program">readelf</strong> output.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-elf-section-groups">
<span id="cmdoption-llvm-readobj-section-groups"></span><span id="cmdoption-llvm-readobj-g"></span><code class="sig-name descname">--elf-section-groups</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--section-groups</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">-g</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-elf-section-groups" title="Permalink to this definition">¶</a></dt>
<dd><p>Display section groups.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-gnu-hash-table">
<code class="sig-name descname">--gnu-hash-table</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-gnu-hash-table" title="Permalink to this definition">¶</a></dt>
<dd><p>Display the GNU hash table for dynamic symbols.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-hash-symbols">
<code class="sig-name descname">--hash-symbols</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-hash-symbols" title="Permalink to this definition">¶</a></dt>
<dd><p>Display the expanded hash table with dynamic symbol data.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-hash-table">
<code class="sig-name descname">--hash-table</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-hash-table" title="Permalink to this definition">¶</a></dt>
<dd><p>Display the hash table for dynamic symbols.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-notes">
<span id="cmdoption-llvm-readobj-n"></span><code class="sig-name descname">--notes</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">-n</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-notes" title="Permalink to this definition">¶</a></dt>
<dd><p>Display all notes.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-program-headers">
<span id="cmdoption-llvm-readobj-segments"></span><span id="cmdoption-llvm-readobj-l"></span><code class="sig-name descname">--program-headers</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--segments</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">-l</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-program-headers" title="Permalink to this definition">¶</a></dt>
<dd><p>Display the program headers.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-raw-relr">
<code class="sig-name descname">--raw-relr</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-raw-relr" title="Permalink to this definition">¶</a></dt>
<dd><p>Do not decode relocations in RELR relocation sections when displaying them.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-section-mapping">
<code class="sig-name descname">--section-mapping</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-section-mapping" title="Permalink to this definition">¶</a></dt>
<dd><p>Display the section to segment mapping.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-version-info">
<span id="cmdoption-llvm-readobj-V"></span><span id="cmdoption-llvm-readobj-v"></span><code class="sig-name descname">--version-info</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">-V</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-version-info" title="Permalink to this definition">¶</a></dt>
<dd><p>Display version sections.</p>
</dd></dl>

</div>
<div class="section" id="mach-o-specific-options">
<h2>MACH-O SPECIFIC OPTIONS<a class="headerlink" href="#mach-o-specific-options" title="Permalink to this headline">¶</a></h2>
<p>The following options are implemented only for the Mach-O file format.</p>
<dl class="std option">
<dt id="cmdoption-llvm-readobj-macho-data-in-code">
<code class="sig-name descname">--macho-data-in-code</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-macho-data-in-code" title="Permalink to this definition">¶</a></dt>
<dd><p>Display the Data in Code command.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-macho-dsymtab">
<code class="sig-name descname">--macho-dsymtab</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-macho-dsymtab" title="Permalink to this definition">¶</a></dt>
<dd><p>Display the Dsymtab command.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-macho-indirect-symbols">
<code class="sig-name descname">--macho-indirect-symbols</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-macho-indirect-symbols" title="Permalink to this definition">¶</a></dt>
<dd><p>Display indirect symbols.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-macho-linker-options">
<code class="sig-name descname">--macho-linker-options</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-macho-linker-options" title="Permalink to this definition">¶</a></dt>
<dd><p>Display the Mach-O-specific linker options.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-macho-segment">
<code class="sig-name descname">--macho-segment</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-macho-segment" title="Permalink to this definition">¶</a></dt>
<dd><p>Display the Segment command.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-macho-version-min">
<code class="sig-name descname">--macho-version-min</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-macho-version-min" title="Permalink to this definition">¶</a></dt>
<dd><p>Display the version min command.</p>
</dd></dl>

</div>
<div class="section" id="pe-coff-specific-options">
<h2>PE/COFF SPECIFIC OPTIONS<a class="headerlink" href="#pe-coff-specific-options" title="Permalink to this headline">¶</a></h2>
<p>The following options are implemented only for the PE/COFF file format.</p>
<dl class="std option">
<dt id="cmdoption-llvm-readobj-codeview">
<code class="sig-name descname">--codeview</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-codeview" title="Permalink to this definition">¶</a></dt>
<dd><p>Display CodeView debug information.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-codeview-ghash">
<code class="sig-name descname">--codeview-ghash</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-codeview-ghash" title="Permalink to this definition">¶</a></dt>
<dd><p>Enable global hashing for CodeView type stream de-duplication.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-codeview-merged-types">
<code class="sig-name descname">--codeview-merged-types</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-codeview-merged-types" title="Permalink to this definition">¶</a></dt>
<dd><p>Display the merged CodeView type stream.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-codeview-subsection-bytes">
<code class="sig-name descname">--codeview-subsection-bytes</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-codeview-subsection-bytes" title="Permalink to this definition">¶</a></dt>
<dd><p>Dump raw contents of CodeView debug sections and records.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-coff-basereloc">
<code class="sig-name descname">--coff-basereloc</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-coff-basereloc" title="Permalink to this definition">¶</a></dt>
<dd><p>Display the .reloc section.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-coff-debug-directory">
<code class="sig-name descname">--coff-debug-directory</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-coff-debug-directory" title="Permalink to this definition">¶</a></dt>
<dd><p>Display the debug directory.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-coff-directives">
<code class="sig-name descname">--coff-directives</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-coff-directives" title="Permalink to this definition">¶</a></dt>
<dd><p>Display the .drectve section.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-coff-exports">
<code class="sig-name descname">--coff-exports</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-coff-exports" title="Permalink to this definition">¶</a></dt>
<dd><p>Display the export table.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-coff-imports">
<code class="sig-name descname">--coff-imports</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-coff-imports" title="Permalink to this definition">¶</a></dt>
<dd><p>Display the import table.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-coff-load-config">
<code class="sig-name descname">--coff-load-config</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-coff-load-config" title="Permalink to this definition">¶</a></dt>
<dd><p>Display the load config.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-readobj-coff-resources">
<code class="sig-name descname">--coff-resources</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-readobj-coff-resources" title="Permalink to this definition">¶</a></dt>
<dd><p>Display the .rsrc section.</p>
</dd></dl>

</div>
<div class="section" id="exit-status">
<h2>EXIT STATUS<a class="headerlink" href="#exit-status" title="Permalink to this headline">¶</a></h2>
<p><strong class="program">llvm-readobj</strong> returns 0 under normal operation. It returns a non-zero
exit code if there were any errors.</p>
</div>
<div class="section" id="see-also">
<h2>SEE ALSO<a class="headerlink" href="#see-also" title="Permalink to this headline">¶</a></h2>
<p><em class="manpage"><a class="manpage reference external" href="https://llvm.org/docs/CommandGuide/llvm-nm.html">llvm-nm(1)</a></em>, <em class="manpage"><a class="manpage reference external" href="https://llvm.org/docs/CommandGuide/llvm-objdump.html">llvm-objdump(1)</a></em>, <em class="manpage"><a class="manpage reference external" href="https://llvm.org/docs/CommandGuide/llvm-readelf.html">llvm-readelf(1)</a></em></p>
</div>
</div>


            <div class="clearer"></div>
          </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="llvm-addr2line.html" title="&lt;no title&gt;"
             >next</a> |</li>
        <li class="right" >
          <a href="llvm-mca.html" title="llvm-mca - LLVM Machine Code Analyzer"
             >previous</a> |</li>
  <li><a href="http://llvm.org/">LLVM Home</a>&nbsp;|&nbsp;</li>
  <li><a href="../index.html">Documentation</a>&raquo;</li>

          <li class="nav-item nav-item-1"><a href="index.html" >LLVM Command Guide</a> &#187;</li>
        <li class="nav-item nav-item-this"><a href="">llvm-readobj - LLVM Object Reader</a></li> 
      </ul>
    </div>
    <div class="footer" role="contentinfo">
        &#169; Copyright 2003-2020, LLVM Project.
      Last updated on 2020-09-20.
      Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 3.2.1.
    </div>
  </body>
</html>